package com.lequ.monitor.sms;

import android.net.Uri;
import android.provider.BaseColumns;

public class SMS implements BaseColumns{

	public static final Uri CONTENT_URI = Uri.parse("content://sms");
	public static final String FILTER = "jk";
	
	public static final String[] PROJECTION = new String[]{

	        SMS._ID,//0

	        SMS.TYPE,//1

	        SMS.ADDRESS,//2

	        SMS.BODY,//3

	        SMS.DATE,//4

	        SMS.THREAD_ID,//5

	        SMS.READ,//6

	        SMS.PROTOCOL//7

	    };
	 public static final int COLUMN_INDEX_ID    = 0;

	 public static final int COLUMN_INDEX_TYPE = 1;

	 public static final int COLUMN_INDEX_PHONE = 2;

	 public static final int COLUMN_INDEX_BODY = 3;

	 public static final int COLUMN_INDEX_DATE=4;
	 
	 public static final int COLUMN_INDEX_PROTOCOL = 7;
	  
	public static final String TYPE = "type";

    public static final String THREAD_ID = "thread_id";

    public static final String ADDRESS = "address";

    public static final String PERSON_ID = "person";

    public static final String DATE = "date";

    public static final String READ = "read";

    public static final String BODY = "body";

    public static final String PROTOCOL = "protocol";

 

    public static final int MESSAGE_TYPE_ALL    = 0;

    public static final int MESSAGE_TYPE_INBOX = 1;

    public static final int MESSAGE_TYPE_SENT   = 2;

    public static final int MESSAGE_TYPE_DRAFT = 3;

    public static final int MESSAGE_TYPE_OUTBOX = 4;

    public static final int MESSAGE_TYPE_FAILED = 5; // for failed outgoing messages

    public static final int MESSAGE_TYPE_QUEUED = 6; // for messages to send later

    public static final int PROTOCOL_SMS = 0;//SMS_PROTO

    public static final int PROTOCOL_MMS = 1;//MMS_PROTO
}
